package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Collection;

/**
 * @author Admin
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "live_user")
@ApiModel(value = "LiveUser对象",description = "用户信息表")
public class LiveUser {

    @TableId(value = "id")
    @ApiModelProperty(value = "用户id")
    private String id;

    @TableField(value = "name")
    @ApiModelProperty(value = "用户昵称")
    private String name;

    @TableField(value = "account")
    @ApiModelProperty(value = "账号")
    private String account;

    @TableField(value = "password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(value = "room_no")
    @ApiModelProperty(value = "房间号，6位数")
    private String roomNo;

    @TableField(value = "administrator")
    @ApiModelProperty(value = "角色，0普通用户1授权直播用户2管理员")
    private Integer administrator;

    @TableField(value = "status")
    @ApiModelProperty(value = "状态，0隐藏1启用9删除")
    private Integer status;
}
